<?php /* Smarty version 2.6.19, created on 2012-12-24 00:24:16
         compiled from vietcad/faq.tpl.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/header.tpl.html", 'smarty_include_vars' => array('title' => 'header')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
    	<div class="content">
   			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/left.tpl.html", 'smarty_include_vars' => array('title' => 'left')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
        	<div class="cont_right">
           		<div class="main_content">
                	<h2>Tư vấn kỹ thuật</h2>
                    <div class="details">
         <?php echo ' 
            <script language="javascript">
            function CheckFormMail()
            {
                    with (document.FormName)
                    {
                            if (first_name.value=="")
                            {
                                    alert("Mời bạn nhâp họ tên!");
                                    first_name.focus();
                                    return false;
                            }
                        if (email.value=="")
                            {
                                    alert("Mời bạn nhập địa chỉ Email!");
                                    email.focus();
                                    return false;
                            }
                            else
                            {
                                    if(email.value.indexOf("@")<0||email.value.indexOf(".")<0)
                                    {
                                            alert("Địa chỉ Email không hợp lệ!");
                                            email.focus();
                                            return false;
                                    }
                            }
					if (title.value=="")
                            {
                                    alert("Mời bạn nhập chủ đề");
                                    title.focus();
                                    return false;
                            }
					if (message.value=="")
                            {
                                    alert("Mời bạn nhập nội dung");
                                    message.focus();
                                    return false;
                            }
					if (code.value=="")
                            {
                                    alert("Mời bạn nhập mã xác nhận");
                                    code.focus();
                                    return false;
                            }
                    }
                    return true;
            }
            </script> 
            '; ?>

            
           <form action="" method="post" name="FormName" target="_parent" onSubmit="return CheckFormMail();">
              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tbody>
                  <tr>
                    <td style="font-size:14px;" > <?php echo $this->_tpl_vars['messages']['giaidapkythuat']; ?>

                      
                      <?php if ($this->_tpl_vars['error']): ?>
                      <p style="color:#C00; text-align:center"><?php echo $this->_tpl_vars['error']; ?>
</p>
                      <?php endif; ?> </td>
                  </tr>
                  <tr>
                    <td><p>&nbsp;</p>
                      <p align="center"><?php echo $this->_tpl_vars['messages']['contacts1']; ?>
<br>
                      </p></td>
                  </tr>
                  <tr>
                    <td valign="top"><table class="text_3" align="center" border="0" cellpadding="0" cellspacing="2" width="100%">
                        <tbody>
                          <tr valign="top">
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td><font size="1"> <?php echo $this->_tpl_vars['messages']['contacts2']; ?>
</font><font color="#CC0000" size="1">(*)</font></td>
                          </tr>
                          <tr valign="top">
                            <td width="28%"><div align="right"> <font color="#CC0000">(*)</font> <?php echo $this->_tpl_vars['messages']['fullname']; ?>
</div></td>
                            <td width="2%">&nbsp;</td>
                            <td width="70%"><input name="first_name" class="box_input" size="35" value="<?php echo $this->_tpl_vars['full_name']; ?>
"></td>
                          </tr>
                          <tr valign="top">
                            <td><div align="right"><?php echo $this->_tpl_vars['messages']['address']; ?>
 </div></td>
                            <td>&nbsp;</td>
                            <td><input name="address" class="box_input" size="35" value="<?php echo $this->_tpl_vars['address']; ?>
"></td>
                          </tr>
                          <tr valign="top">
                            <td><div align="right"><?php echo $this->_tpl_vars['messages']['tel']; ?>
 </div></td>
                            <td>&nbsp;</td>
                            <td><input name="tel" class="box_input" size="35" value="<?php echo $this->_tpl_vars['tel']; ?>
"></td>
                          </tr>
                          <tr valign="top">
                            <td><div align="right"> <font color="#CC0000">(*)</font> Email </div></td>
                            <td>&nbsp;</td>
                            <td><input name="email" class="box_input" size="35" value="<?php echo $this->_tpl_vars['email']; ?>
"></td>
                          </tr>
                          <tr valign="top">
                            <td><div align="right"> <font color="#CC0000">(*)</font><?php echo $this->_tpl_vars['messages']['chude']; ?>
 </div></td>
                            <td>&nbsp;</td>
                            <td><select style="" name="tvkt1">
                                <option value="1"><?php echo $this->_tpl_vars['messages']['kythuat']; ?>
</option>
                                <option value="2"><?php echo $this->_tpl_vars['messages']['baohanh']; ?>
</option>
                                <option value="3"><?php echo $this->_tpl_vars['messages']['suachua']; ?>
</option>
                                <option value="4"><?php echo $this->_tpl_vars['messages']['sudung']; ?>
</option>
                                <option value="5"><?php echo $this->_tpl_vars['messages']['baoquantbi']; ?>
</option>
                              </select></td>
                          </tr>
                          <tr valign="top">
                            <td><div align="right"><font color="#CC0000">(*)</font> <?php echo $this->_tpl_vars['messages']['title']; ?>
 </div></td>
                            <td>&nbsp;</td>
                            <td><input name="title" class="box_input" id="title" size="35" value="<?php echo $this->_tpl_vars['title']; ?>
"></td>
                          </tr>
                          <tr valign="top">
                            <td><div align="right"><font color="#CC0000">(*)</font> <?php echo $this->_tpl_vars['messages']['content']; ?>
</div></td>
                            <td>&nbsp;</td>
                            <td><textarea name="message" cols="35" rows="6" wrap="VIRTUAL" class="box_area"><?php echo $this->_tpl_vars['message']; ?>
</textarea></td>
                          </tr>
                          <tr valign="top">
                     <td><div align="right"><font color="#CC0000">(*)</font> <?php echo $this->_tpl_vars['messages']['security']; ?>
</div></td>
                      <td>&nbsp;</td>
                     <td style="vertical-align:middle">
                     <input type="text" value="" name="code"  size="10" class="box_input"  id="code" style="float:left; margin-right:15px"/> &nbsp;&nbsp;
                     <img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/authimg.php" alt="Authenticate image" height="100%" align="left"/>
			<?php if ($this->_tpl_vars['listerror'][3]): ?>
			                            <span class="msg"><?php echo $this->_tpl_vars['listerror'][3]; ?>
</span>
                        <?php endif; ?>	
				
                </td>
			</tr>
                          <tr valign="top">
                            <td height="65">&nbsp;</td>
                            <td>&nbsp;</td>
                            <td><input name="B1" class="submitbutton" value="  <?php echo $this->_tpl_vars['messages']['send']; ?>
  " type="submit">
                              <input name="op" value="faq" type="hidden">
                              <input name="lang" value="<?php echo $this->_tpl_vars['lang']; ?>
" type="hidden">
                              <input name="slug" value="<?php echo $this->_tpl_vars['slug']; ?>
" type="hidden">
                              &nbsp;
                              <input name="B2" class="submitbutton" value="  <?php echo $this->_tpl_vars['messages']['reset']; ?>
  " type="reset"></td>
                          </tr>
                        </tbody>
                      </table></td>
                  </tr>
                </tbody>
              </table>
            </form>
        </div>
                </div>
  			 </div>
   		</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/footer.tpl.html", 'smarty_include_vars' => array('title' => 'footer')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 